package com.woniuedu.controller;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.woniuedu.dto.ManageCourseDto;
import com.woniuedu.entity.Course;
import com.woniuedu.service.ManageCourseService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;



/**
 * author: 承雍
 * Date: 2022/4/27 9:47
 * Description:后台课程管理
 */
@RestController
@RequestMapping("/eduservice")
public class ManageCourseController {
    @Autowired(required = false)
    private ManageCourseService manageCourseService;

    @PostMapping("/course")
    @ApiOperation(value = "后台查看全部的课程信息")
    public IPage<Course> findAllCourse(@RequestBody ManageCourseDto manageCourseDto) {
        return manageCourseService.findAllCourse(manageCourseDto);
    }
}
